from django.db import models

# Create your models here.
from user.models import User


class Attendance(models.Model):
    user = models.ForeignKey(User, default=None, null=True, blank=True, on_delete=models.SET_NULL,
                             verbose_name="账号")
    check_time=models.TimeField('签到时间',auto_now=True,null=True)
    check_state=models.CharField('签到状态',default=None,max_length=50)
    # present_time = models.TimeField('当前时间', auto_now=True, null=True)
    sign_back_time = models.TimeField('签退时间', auto_now=True, null=True)
    sign_back_state = models.CharField('签退状态', default=None, max_length=50, null=True)



